<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title>inline-block + text-align实现水平居中</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.css" rel="stylesheet" />
		<style type="text/css">
			#parent{
				width: 100%;
				height: 200px;
				background: #FFFF00;
				text-align: center;
			}
			#child{
				width: 200px;
				height: 200px;
				background:#0000FF;
				display: inline-block;
			}
		</style>
	</head>

	<body>
		<div id="parent">
			<div id="child">慕课网</div>
		</div>
	</body>

</html>
